package channel;

import javax.xml.bind.JAXBElement;

import model.response.configResponse.ConfigResolveClasses;



public class ConnectToUCS 
{

	public void getUCSData(String hostname,String username,String password,int port,boolean issecure) throws Exception
	{
		
		UCSAPIService ucs=new UCSAPIService(hostname,username,password,port,issecure);
		ucs.toLoginRequest();
	
		JAXBElement<ConfigResolveClasses> UCSAPIresponse=ucs.toConfigResolve();
		System.out.println("UCSResponse::"+UCSAPIresponse);
	
		
	}
	public static void main(String[] args) throws Exception
	{
		
		String username="config";
		String password="config";
		String hostname="172.29.1.39";
		int port=443;
		boolean issecure=true;
		ConnectToUCS con=new ConnectToUCS();
		con.getUCSData(hostname,username,password,port,issecure);
		
	}

}
